package com.lgx.mall.business.dao;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.mall.business.entity.OrderDetail;

public interface IOrderDetailDao {
	
	public OrderDetail createOrderDetail(OrderDetail detail)throws DataException;
	public OrderDetail updateOrderDetail(OrderDetail detail)throws DataException;
	public void deleteOrderDetail(OrderDetail detail)throws DataException;
	public void deleteOrderDetail(long id)throws DataException;
	public OrderDetail findOrderDetailById(long id);
	
	public List<OrderDetail> findOrderDetailList(long orderId);    //根据订单id查找这个id对应的订单明细信息
	
	public OrderDetail findOrderDetailById(long orderId,String entityId,String entityType);
	
	public String checkOrderDetail(long orderId,long productId);
}
